package com.qianfeng.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.qianfeng.pojo.UserNode;
import com.qianfeng.service.UserService;

@Controller
public class Neo4jController {

	@Autowired
	private UserService userService;
	
	@RequestMapping("/savauser")
	@ResponseBody
	public String saveUserNode() {
		UserNode node= new UserNode();
		node.setNodeId((long) 11);
		node.setUserId("666");
		node.setName("张三");
		node.setAge(21);
		userService.addUserNode(node);
		return "seccess";
	}
}


















